package com.sie.demo.service;

import com.sie.demo.entity.Role;
import com.sie.demo.entity.vo.PageRoleVo;

import com.sie.demo.entity.vo.QueryRoleVo;
import com.sie.demo.entity.vo.QueryUserVo;

/**
 * @author liaozhifeng
 * @date 2021/8/4 14:29
 * @Version 1.0
 */
public interface RoleService {
 /**
  * 分页查询角色
  * @param currentPage
  * @param pageSize
  * @param queryRoleVo
  * @return
  */
 PageRoleVo selectAll(long currentPage, long pageSize, QueryRoleVo queryRoleVo);

 /**
  * 新增时查询是否重复
  * @param roleName
  * @return
  */
 Role getOne(String roleName);

 /**
  * 添加角色
  * @param role
  * @return
  */
 Integer addRole(Role role);

 /**
  * 编辑角色
  * @param role
  * @return
  */
 Integer editRole(Role role);

 /**
  * 删除角色
  * @param roleSelected
  * @return
  */
 Integer deleteRoleByIds(String[] roleSelected);


}
